package com.ruoyi.business.mapper;

import com.ruoyi.activiti.domain.IProcessInstance;
import com.ruoyi.business.domain.LeaveRequestForm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author danghf
 * @date 2024/04/27 18:25:31
 */
@Mapper
public interface LeaveRequestFormMapper {
    /**
     * 新增请假申请表单
     * @param leaveRequestForm 请假申请表单
     * @return int
     */
    int insertOne(LeaveRequestForm leaveRequestForm);

    /**
     * 查询请假申请表单
     * @param id 请假申请表单ID
     * @return 请假申请表单
     */
    LeaveRequestForm selectLeaveRequestFormById(Long id);

    /**
     * 查询请假流程列表
     * @return list
     */
    List<IProcessInstance> selectLeaveProcessList();
}
